package com.zusmart.core.bean.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.zusmart.core.bean.BeanDefinition;

/**
 * 组件标识注解,标识此类交给zusmart进行实例化,可通过value指定beanName,通过scope指定bean的scope
 * 
 * @author Administrator
 *
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
public @interface Component {

	public String value() default "";// value为空时,默认使用当前类型的骆驼命名法

	public String scope() default BeanDefinition.SCOPE_SINGLETON;// scope默认是单例模式

}